The Preference Flags Request Type
Use the preference flags request to specify or retrieve the standard dialog component's preference flags. These flags govern some of the details of the dialog box that are presented to the user.
You supply a pointer to a long integer. If you are retrieving these flags, the standard dialog component places the current settings into the specified field; if you are changing the flags, set the field with your desired flag values--the component uses those values to update its settings.
By default, the
SCRequestImageSettings
function operates with the
scShowBestDepth
and
scUseMovableModal
flags set to 1. The
SCRequestSequenceSettings
function operates with the
scUseMovableModal
flag set to 1. You should never need to change the values of the
scListEveryCodec
or
scUseMovableModal
flags.
The following flags are defined:
#define scListEveryCodec (1L<<1) /* list every component */
#define scAllowZeroFrameRate (1L<<2) /* allow 0 frame rate */
#define scAllowZeroKeyFrameRate
(1L<<3) /* 0 key frame rate OK */
#define scShowBestDepth (1L<<4) /* use best image depth */
#define scUseMovableModal (1L<<5) /* use movable dialog */
Flag descriptions
-
scListEveryCodec
-
Controls the contents of the pop-up menu of compressors. If you set this flag to 1, the standard image-compression dialog component lists every compressor component that is present in the system. Each entry in the list contains the name of a compressor component. The user may then select a specific component from the list.
-
If you set this flag to 0, the list contains one entry for each type of compressor component that is present in the system. Each list entry contains the name of a compressor type (for example, a list entry might contain "Animation" for the animation compressor). The user may then select a type of compressor--it is your application's responsibility to select an appropriate compressor of that type.
-
scAllowZeroFrameRate
-
Determines whether the component allows the user to specify a value of 0 for the frame rate. If you set this flag to 1, the component allows the user to specify either 0 or nothing for the frame rate. The component then includes a "best rate" entry in the pop-up menu. If the user specifies 0, the component sets the
frameRate
field in the
SCTemporalSettings
structure to 0. Your application must then determine the best frame rate for the movie.
-
If you set this flag to 0, the component does not allow the user to enter 0 for the frame rate. In this case, the user must select a specific frame rate.
-
scAllowZeroKeyFrameRate
-
Similar to the
scAllowZeroFrameRate
flag, this flag determines whether the component allows the user to specify a value of 0 for the key frame rate. If you set this flag to 1, the component allows the user to specify 0 for the frame rate. If the user specifies 0, the component sets the
keyFrameRate
field in the
SCTemporalSettings
structure to 0. Your application must then determine the best key frame rate for the movie.
-
If you set this flag to 0, the component does not allow the user to specify 0 for the frame rate. In this case, if the user has enabled temporal compression by checking the key frame checkbox, the user must also select a specific key frame rate.
-
scShowBestDepth
-
Determines whether the component includes a "best depth" entry in the pop-up menu for pixel depth. If you set this flag to 1, the component includes a "best depth" entry in the pop-up menu. If the user selects "best depth," the component sets the depth to 0. Your application must then determine the best pixel depth for the movie.
-
If you set this flag to 0, the component does not include a "best depth" entry in the pop-up menu. The user must select a depth from among the other available choices.
-
scUseMovableModal
-
Determines whether the standard compression dialog is a movable or a stationary dialog. Set this flag to 1 to create a movable dialog. In this case, you should provide an event filter function to handle update events (use the
scExtendedProcsType
request).
© 1997 Apple Computer, Inc.Previous | Chapter Top | Chapter Contents | Next